package com.itheima.reggie.common;

import com.itheima.reggie.domain.Employee;

//	ThreadLocal操作工具类
public class EmployeeHolder {
	
	//维护的ThreadLocal对象
	private static ThreadLocal<Employee> threadLocal = new ThreadLocal<>();
	
	public static void set(Employee employee) {
		threadLocal.set(employee);
	}
	
	public static Employee get() {
		return threadLocal.get();
	}
	
	public static void remove(){
		threadLocal.remove();
	}
}
